package com.hubei.dao.impl;

import com.hubei.dao.UserDao;
import com.hubei.vo.User;
import org.springframework.stereotype.Repository;

/**
 * @Title: UserDaoImpl
 * @Author qzAI
 * @Package com.hubei.dao.impl
 * @Date 2025/6/28 11:23
 */
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    @Override
    public User queryUserById(Integer id) {
        User user = null;
        if (id==1){
            user = new User(1, "张三","20", "男");
        }else{
            user = new User(2, "白晶晶", "20", "女");
        }
        return user;
    }
}


